using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Model;

namespace ESoft.Domain.Entity
{
    /// <summary>
    /// ShopOrderInvoice
    /// </summary>    
	[Table("shop_order_invoice")]
    public partial class ShopOrderInvoiceEntity : BaseFakeModel<String>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("shop_order_id")]
        public string ShopOrderId { get; set; }
    
        /// <summary>
        /// 1普通发票2增值发票
        /// </summary>
		[Column("is_vat")]
        public int? IsVat { get; set; }
    
        /// <summary>
        /// 发票抬头名称
        /// </summary>
		[Column("invoice_title")]
        public string InvoiceTitle { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("invoice_content")]
        public string InvoiceContent { get; set; }
    
        /// <summary>
        /// 发票金额
        /// </summary>
		[Column("invoice_amount")]
        public decimal? InvoiceAmount { get; set; }
    
        /// <summary>
        /// 发票税号
        /// </summary>
		[Column("invoice_tax_no")]
        public string InvoiceTaxNo { get; set; }
    
        /// <summary>
        /// 开票税金
        /// </summary>
		[Column("invoice_tax")]
        public decimal? InvoiceTax { get; set; }
    
        /// <summary>
        /// 公司名称[增值税]
        /// </summary>
		[Column("vat_company_name")]
        public string VatCompanyName { get; set; }
    
        /// <summary>
        /// 公司地址[增值税]
        /// </summary>
		[Column("vat_company_address")]
        public string VatCompanyAddress { get; set; }
    
        /// <summary>
        /// 联系电话[增值税]
        /// </summary>
		[Column("vat_telphone")]
        public string VatTelphone { get; set; }
    
        /// <summary>
        /// 开户银行[增值税]
        /// </summary>
		[Column("vat_bank_name")]
        public string VatBankName { get; set; }
    
        /// <summary>
        /// 银行帐号[增值税]
        /// </summary>
		[Column("vat_bank_account")]
        public string VatBankAccount { get; set; }
    
        /// <summary>
        /// 开票时间
        /// </summary>
		[Column("created_time")]
        public DateTime? CreatedTime { get; set; }
    }

	public class ShopOrderInvoiceEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<ShopOrderInvoiceEntity>(new EntityTypeConfiguration<ShopOrderInvoiceEntity>());
        }
    }
}

